//
//  CreateRoadShowCell.m
//  BigToBig
//
//  Created by yi liu on 16/8/2.
//  Copyright © 2016年 cn.cloudtp. All rights reserved.
//

#import "CreateRoadShowCell.h"

@interface CreateRoadShowCell ()

@property (nonatomic ,strong)UIImageView *picImageView;

@end

@implementation CreateRoadShowCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createSubViews];
        
    }
    return self;
}

- (void)createSubViews{
    self.titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(20, 0, kScreenWidth / 2 - 30, self.height)];
    [self addSubview:_titleLabel];
    _titleLabel.textAlignment = NSTextAlignmentLeft;
    
    self.messageLabel = [[UILabel alloc]initWithFrame:CGRectMake(kScreenWidth / 2, 0, kScreenWidth/2  - 50, self.height)];
    [self addSubview:_messageLabel];
    _messageLabel.textAlignment = NSTextAlignmentRight;
    _messageLabel.textColor = [UIColor lightGrayColor];
    
    self.picImageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.height / 2, self.height / 2)];
    self.picImageView.image = [UIImage imageNamed:@"登陆三角_08"];
    [self addSubview:self.picImageView];
}

- (void)layoutSubviews{
    self.titleLabel.frame = CGRectMake(20, 0, kScreenWidth / 2 - 30, self.height);
    self.messageLabel.frame = CGRectMake(kScreenWidth / 2, 0, kScreenWidth/2  - 50, self.height);
    self.picImageView.frame = CGRectMake(0, 0, self.height / 4, self.height / 4);
    self.picImageView.center = CGPointMake(kScreenWidth - 30, self.height / 2) ;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
